﻿@model Headlight.ViewModels.QuoteViewModel
@{
    ViewBag.Title = "Searchaquote.com";
    Layout = "~/Views/Shared/_Layout.cshtml";
    
    int lpValue; //new Random().Next(1,3).ToString();
    if (HttpContext.Current.Application["lpID"] == null)
    {
        HttpContext.Current.Application["lpID"] = lpValue = 1;
    }
    else
    {
        lpValue = (int)HttpContext.Current.Application["lpID"];
        HttpContext.Current.Application["lpID"] = lpValue = ((lpValue == 1) ? 2 : 1);      
    }
    
    string flashURL = Url.Content("~/assets/swf/landing" + lpValue + ".swf");

}

@section head
{
<script src="@Url.Content("~/assets/js/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/assets/js/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}

@*
<div class="lp-flash-area">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="970" height="715" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="@flashURL" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" /><embed src="@flashURL" quality="high" bgcolor="#ffffff" width="970" height="715" align="middle" allowScriptAccess="sameDomain" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</div>
*@

@* PPV Style *@
<div class="lp-flash-area">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="@flashURL" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" /><embed src="@flashURL" quality="high" bgcolor="#ffffff" width="750" height=55   0" align="middle" allowScriptAccess="sameDomain" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</div>


@*
<h1>Compare Rate & Save on Insurance!</h1>

<div class="row">
        <div class="span8">
          [Image Placeholder]
        </div>
        <div class="span4">

            @using (Html.BeginForm("Index", "Quote", FormMethod.Post, null))
            {   
                @Html.AntiForgeryToken("Secret");

                //@Html.ValidationSummary()
                <label>Enter Your Zip Code</label>   
 		        @Html.TextBoxFor(model => model.Quote.ZipCode, new { @maxlength = "5", @class = "zip-large span2" })
                <p class="help-block">@Html.ValidationMessageFor(model => model.Quote.ZipCode)</p>

                <label>Are you currently insured?</label> 
    	        <label class="radio inline">
		        @Html.RadioButtonFor(model => model.Quote.IsInsured, "true") Yes </label>
                    
    	        <label class="radio inline">
		        @Html.RadioButtonFor(model => model.Quote.IsInsured, "false") No </label>
                <p class="help-block">@Html.ValidationMessageFor(model => model.Quote.IsInsured)</p>
                    
                <input type="submit" value="Get My Quotes" class="btn btn-large btn-primary" />
            }
        
        </div>
</div>
*@
